<template>
    <div id="myCard">
        <header class="header"><router-link to='/mine?type=3' class="addTrend"><i class="el-icon-arrow-left"></i></router-link>推荐名帖列表</header>
        <div class="head-items">
            <div class="item-content">
                <router-link class="link-item link-item-down" to="/mine/myRecommend/recommend">推荐</router-link>
                <router-link class="link-item link-item-down" to="/mine/myRecommend/recommendMe">被推荐</router-link>
            </div>
        </div>
        <router-view></router-view>
    </div>
</template>

<script>


export default {
    data(){
        return {}
    },
    components:{},
    created(){
        // this.$store.commit('changeShowit',{val:false})
    }
}
</script>

<style scoped >
#myCard {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    width: 100%;
    height:100%;
    position: absolute;
    top: 0;
    left: 0;
}
.header{
    width:100%;
    height:3rem;
    line-height:3rem;
    background:#eee;
    color:#333;
    font-size:1.2rem;
    position: fixed;
    top: 0;
    z-index:5;
}
.header i{ color: #333;}
.head-items{
    display: flex;
    padding: 0.5rem;
    box-sizing: border-box;
    background:#eee;
    margin-top:3rem;
}
.head-items{
    position:fixed;
    top:0;
    z-index:100;
    width:100%;
}

.item-content{
    width: 60%;
    height: 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border-radius: 2xp;
    margin: 0 auto;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 2px;
}
.item-content .link-item{
    line-height: 2rem;
    height:2rem;
    width: 50%;
    background:#666;
    color:#fff;
}
.item-content .router-link-active{
    background:#ffffff;
    color:#333;
}
header a{
    position: absolute;
    left: 2%;
    color: #ffffff;
    width: 2rem;
}
</style>
